home *** CD-ROM | disk | FTP | other *** search
/ IRIX 6.3 Development Libraries / SGI IRIX 6.3 Development Libraries.iso / dist6.3 / ViewKit_dev.idb / usr / include / Vk / VkCheckBox.h.z / VkCheckBox.h
Encoding:
C/C++ Source or Header  |  1996-09-20  |  2.0 KB  |  60 lines

  1. ////////////////////////////////////////////////////////////////////////////////
  2. ///////   Copyright 1992, Silicon Graphics, Inc.  All Rights Reserved.   ///////
  3. //                                                                            //
  4. // This is UNPUBLISHED PROPRIETARY SOURCE CODE of Silicon Graphics, Inc.;     //
  5. // the contents of this file may not be disclosed to third parties, copied    //
  6. // or duplicated in any form, in whole or in part, without the prior written  //
  7. // permission of Silicon Graphics, Inc.                                       //
  8. //                                                                            //
  9. // RESTRICTED RIGHTS LEGEND:                                                  //
  10. // Use,duplication or disclosure by the Government is subject to restrictions //
  11. // as set forth in subdivision (c)(1)(ii) of the Rights in Technical Data     //
  12. // and Computer Software clause at DFARS 252.227-7013, and/or in similar or   //
  13. // successor clauses in the FAR, DOD or NASA FAR Supplement. Unpublished -    //
  14. // rights reserved under the Copyright Laws of the United States.             //
  15. //                                                                            //
  16. ////////////////////////////////////////////////////////////////////////////////
  17. #ifndef VKCHECKBOX_H
  18. #define VKCHECKBOX_H
  19.  
  20. #include <Vk/VkComponent.h>
  21.  
  22.  
  23. class VkWidgetList;
  24.  
  25. class VkCheckBox : public VkComponent {
  26.  
  27.   public:
  28.  
  29.     static const char * const itemChangedCallback;
  30.     
  31.     VkCheckBox(const char * name, Widget);
  32.     ~VkCheckBox();
  33.  
  34.     Widget addItem(char *, Boolean state = 0, XtCallbackProc proc = 0, XtPointer clientData = 0);
  35.  
  36.     void setValue(int index, Boolean newValue);
  37.     void setValues(Boolean *values, int numValues);
  38.     int getValue(int index);
  39.  
  40.     virtual const char* className();
  41.  
  42.  
  43.   protected:
  44.  
  45.     VkWidgetList *_widgetList;
  46.  
  47.     Widget     _rc;
  48.     Widget     _label;
  49.  
  50.     virtual void valueChanged(int index, Boolean newValue);
  51.  
  52.     
  53.   private:
  54.  
  55.     static void valueChangedCallback(Widget, XtPointer, XtPointer);
  56.     
  57. }; 
  58.  
  59. #endif
  60.